<!-- This is the login-form-view which the user is prompted, if session is not set-->

<div id="login_form">
    <h1>Login, Big Guy!</h1>

    <script type="text/javascript"  >

        function clearText(thefield){
        if (thefield.defaultValue==thefield.value)
        thefield.value = ""
        }
    </script>


    <?php
    $form_user = array(
        'name'      =>  'username',
        'value'     =>  'Username',
        'onFocus'   =>  'clearText(this)'
        );

    $form_pass = array(
        'name'      =>  'password',
        'value'     =>  'Password',
        'onFocus'   =>  'clearText(this)'
        );


    echo form_open('login/validate_credentials');
    echo form_input($form_user);
    echo form_password($form_pass);
    echo form_submit('submit', 'Login');
    echo anchor('login/signup', 'Create Account');
    echo form_close();
    echo anchor("email/index","<h6>Forgot username or password?</h6>");
    ?>

</div>